<HTML>
<HEAD>
<TITLE>Modal and Modelless test</TITLE>

<SCRIPT LANGUAGE="JScript">
function openNewWindow(szMethod) {
   if (szMethod == "modal") {
      window.showModalDialog("http://www.google.com");
   }
   else if (szMethod == "modeless") {
      window.showModelessDialog("http://www.google.com");
   }  
}
</SCRIPT>
</HEAD>

<BODY>
<P>Use one of the buttons below to launch either a modal or modeless dialog.<br>
frmHTMLDialogHandler attempts to find and subscribe to the HTMLdialog's document and window objects.<BR><BR>
<INPUT type="button" value="showModalDialog" id=button2 name=button2 onclick="openNewWindow('modal');"><BR><br>
<INPUT type="button" value="showModelessDialog" id=button3 name=button3 onclick="openNewWindow('modeless');"></P>
</BODY>
</HTML>